package com.rich.broker.controller;

import com.rich.broker.service.SellSuccessHouseService;
import com.rich.common.entity.TbSellSuccessHouse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author HanSama
 * @date 2021年08月16日 18:29
 */
@RestController
@RequestMapping("/sellSuccessHouse")
public class SellSuccessHouseController {

    @Autowired
    private SellSuccessHouseService sellSuccessHouseService;

    /**
     * 个人售卖房成交详情
     * @author HanSama
     * @date 2021/8/16 18:46
     * @param sellSuccessHouse
     * @return java.util.List
     */
    @PostMapping("/search")
    public List<TbSellSuccessHouse> search(@RequestBody TbSellSuccessHouse sellSuccessHouse){
        return sellSuccessHouseService.search(sellSuccessHouse);
    }


}
